const webpack = require('webpack')
module.exports = {
	devServer: {
		overlay: {
			warnings: false,
			errors: true
		},
		proxy: {
			"/api": {
				target: "http://124.220.206.137:8080",
				changeOrigin: true //
			}
		}
		//before: require('./mock/mock-server.js')
	},
	chainWebpack: config => {
		config
			.plugin('define')
			.tap(args => {
				args[0]['process.env'].VUE_APP_TEST = '"test"'
				return args
			})
	}
}
